package org.zjt.platform.springbootreactivedemo.config.endpoint;

import org.springframework.boot.actuate.info.Info;
import org.springframework.boot.actuate.info.InfoContributor;
import org.springframework.stereotype.Component;

import java.util.Collections;

/**
 * Description: 增加 /info 信息
 *
 * @author juntao.zhang
 * Date: 2018-06-13 上午10:34
 * @see
 */
@Component
public class CustomizedInfoContributor implements InfoContributor {
    @Override
    public void contribute(Info.Builder builder) {
        builder.withDetail("auth", Collections.singletonMap("name", "juntao.zhang"));    }
}
